import Vue from 'vue'
import Router from 'vue-router'

import Main from '@p/main/main' //主页
import Home from '@p/main/home/home' //首页
import Sort from '@p/main/sort/sort' //分类页面
import Taste from '@p/main/taste/taste' //最新成交页面
import Self from '@p/main/self/self' //个人
import ShoppingCart from '@p/main/ShoppingCart/ShoppingCart'//购物车

import Login from '@p/login/login' //登录页面

import Register from '@p/register/register' //注册页面

import Forget from '@p/forget/forget' //忘记密码

import LatestDeal from '@p/main/latestDeal/latestDeal' //最新成交
import DealDetail from '@p/main/dealDetail/dealDetail' //商品详情
import Carry from '@p/carry/carry' //提现

import AddCard from '@p/addCard/addCard' //添加银行卡

import Transfer from '@p/transfer/transfer' //转账

import Card from '@p/card/card' //我的银行卡

import Mate from '@p/mate/mate' //我的好友
import MateChat from '@p/mate/mateChat' //好友聊天

import Us from '@p/us/us' //关于我们

import UserInfo from '@p/userInfo/userInfo' //个人资料

import Revise from '@p/revise/revise' //修改密码||手机号
import ReviseNowTel from '@p/reviseNowTel/reviseNowTel' //新手机号

import Address from '@p/address/address' //收货地址
import addAddress from '@p/address/addAddress' //添加收货地址
import SelectAddress from '@p/address/selectAddress'//选择收货地址

import integral from '@p/integral/integral' //我的积分

import Balance from '@p/balance/balance' //我的余额

import Recharge from '@p/recharge/recharge' //充值

import Chat from '@p/chat/chat' //聊天

import auction from '@p/auction/auction' //我的商品

import collection from '@p/collection/collection' //我的收藏

import List from '@p/list/list' //分类列表

import Logistics from '@p/logistics/logistics' //物流

import Apply from '@p/apply/apply' //申请成为商家

import SetPay from '@p/setPay/setPay' //设置资金密码

import Order from '@p/Order/Order' //确认订单

import IntegralList from '@p/IntegralList/IntegralList' //积分兑换详情页

import IntegralDetail from '@p/IntegralDetail/IntegralDetail' //积分兑换详情页

import Search from '@p/search/search' //搜索

import IntegralOrder from '@p/IntegralOrder/IntegralOrder' //积分兑换详情结算页

import Exchange from '@p/Exchange/Exchange' //兑换区

import EntryLux from '@p/EntryLux/EntryLux' //轻奢品

import ClassifyList from '@p/ClassifyList/ClassifyList' //分类列表

import Voucher from '@p/Voucher/Voucher' //卡劵

Vue.use(Router)

export default new Router({
	routes: [
		{
			path: '/',
			name: 'Main',
			component: Main,
			children: [
				{
					path: '/',
					name: 'Home',
					component: Home,
				},
				{
					path: '/home',
					name: 'Home',
					component: Home,
				},
				{
					path: '/sort',
					name: 'Sort',
					component: Sort,
				},
				{
					path: '/taste',
					name: 'Taste',
					component: Taste,
				},
				{
					path: '/self',
					name: 'Self',
					component: Self,
				},
        {
          path: '/ShoppingCart',
          name: 'ShoppingCart',
          component: ShoppingCart,
        },
				{
					path: '/IntegralList',
					name: 'IntegralList',
					component: IntegralList,
				},
			],
		},
		{
			path: '/dealDetail',
			name: 'DealDetail',
			component: DealDetail,
		},
		{
			path: '/login',
			name: 'login',
			component: Login,
		},
		{
			path: '/register',
			name: 'Register',
			component: Register,
		},
		{
			path: '/forget',
			name: 'Forget',
			component: Forget,
		},
		{
			path: '/carry',
			name: 'Carry',
			component: Carry,
		},
		{
			path: '/addCard',
			name: 'AddCard',
			component: AddCard,
		},
		{
			path: '/transfer',
			name: 'Transfer',
			component: Transfer,
		},
		{
			path: '/card',
			name: 'Card',
			component: Card,
		},
		{
			path: '/mate',
			name: 'Mate',
			component: Mate,
		},
		{
			path: '/mateChat',
			name: 'MateChat',
			component: MateChat,
		},
		{
			path: '/us',
			name: 'Us',
			component: Us,
		},
		{
			path: '/userInfo',
			name: 'UserInfo',
			component: UserInfo,
		},
		{
			path: '/revise',
			name: 'Revise',
			component: Revise,
		},
		{
			path: '/reviseNowTel',
			name: 'ReviseNowTel',
			component: ReviseNowTel,
		},
		{
			path: '/address',
			name: 'Address',
			component: Address,
		},
		{
			path: '/addAddress',
			name: 'addAddress',
			component: addAddress,
		},
		{
			path: '/selectAddress',
			name: 'SelectAddress',
			component: SelectAddress,
		},
		{
			path: '/integral',
			name: 'integral',
			component: integral,
		},
		{
			path: '/balance',
			name: 'Balance',
			component: Balance,
		},
		{
			path: '/recharge',
			name: 'Recharge',
			component: Recharge,
		},
		{
			path: '/chat',
			name: 'Chat',
			component: Chat,
		},
		{
			path: '/auction',
			name: 'auction',
			component: auction,
		},
		{
			path: '/collection',
			name: 'collection',
			component: collection,
		},
		{
			path: '/list',
			name: 'List',
			component: List,
		},
		{
			path: '/logistics',
			name: 'Logistics',
			component: Logistics,
		},
		{
			path: '/apply',
			name: 'Apply',
			component: Apply,
		},
		{
			path: '/setPay',
			name: 'SetPay',
			component: SetPay,
		},
    {
			path: '/Order',
			name: 'Order',
			component: Order,
		},
    {
      path: '/IntegralDetail',
      name: 'IntegralDetail',
      component: IntegralDetail,
    },
    {
      path: '/search',
      name: 'search',
      component: Search,
    },
    {
      path: '/latestDeal',
      name: 'LatestDeal',
      component: LatestDeal,
    },
    {
      path: '/IntegralOrder',
      name: 'IntegralOrder',
      component: IntegralOrder,
    },{
      path: '/exchange',
      name: 'Exchange',
      component: Exchange,
    },{
      path: '/entryLux',
      name: 'EntryLux',
      component: EntryLux,
    },{
      path: '/classifyList',
      name: 'ClassifyList',
      component: ClassifyList,
    },{
      path: '/voucher',
      name: 'Voucher',
      component: Voucher,
    },
	],
})
